//
//  ModelZero.m
//  FloatClouds
//
//  Created by 黄威 on 16/09/02
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "ModelZero.h"
#import "Csort.h"

@implementation ModelZero

-(void)setValue:(id)value forKey:(NSString *)key{
    
    
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"csort"]) {
        
        NSMutableArray *array = [NSMutableArray array];
        
        for (NSDictionary *dic in value) {
            
            Csort *cigarettes = [Csort modelWithDic:dic];
            
            [array addObject:cigarettes];
            
        }
        
        _csort = array;
        
    }
    
    
    
    
    
}

@end
